<script type="text/javascript" src="module/mod_ppk/js/kabupaten.js"></script>

<div id="tiga_ba">
	<div id="tiga_baa">Copy Tarif PPK</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select id_ppk,nama from ppk where id_ppk = '$id'";
	//echo $sql;
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_ppk&act=proses" onsubmit="return gsValidate('ppk','PPK Harus Dipilih','required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Nama PPK</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input2" id="nama" maxlength="50" value="<?php echo $hasil['nama']?>" disabled/>
				<input name="id_ppk" type="hidden" id="id_ppk" value="<?php echo $hasil['id_ppk']?>" />
			</td>
		</tr>
		<tr>
			<td>Copy Dari</td>
			<td>&nbsp;</td>
			<td>
				<select name="ppk" class="input2">
					<option value=""> - - Pilih PPK - - </option>
					<?php
						$ppk = mysql_query("select * from ppk where id_ppk <> $hasil[id_ppk]");
						while($p=mysql_fetch_array($ppk)){
							echo "<option value=$p[id_ppk]>$p[nama]</option>";
						}
					?>
				</select>
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Proses" /></td>
		</tr>
	</table>
</form>		
            
        